package cn.shequren.communityPeople.utils;

import android.content.Context;

import com.jz.community.basecomm.base.BaseSP;

/**
 * Created by Tony.Fan on 2018/3/23 17:18
 */
public class SPUtils extends BaseSP {

    private static SPUtils spUtils = new SPUtils();

    public static SPUtils getInstance() {
        return spUtils;
    }

    @Override
    public String getModelPreferenceFIleName() {
        return "community_msg";
    }

    public boolean isFirstOpenApp(Context context) {
        return getBoolean(context, "isFirstOpenApp");
    }

    public void setFirstOpenApp(Context context, boolean isFirstOpenApp) {
        putBoolean(context, "isFirstOpenApp", isFirstOpenApp);
    }
}
